package drymouth;
public class Condition
{
	//private data
	private String myName;
	private String myDescription;
	private SymptomSet mySymptoms;

//constructors
public Condition()
	{Condition("default","default","");}

public Condition(String name, String description, String concat_symptoms)
	{
		myName=name;
		myDescription=description;
		mySymptoms=new SymptomSet(concat_symptoms);
	}
	
//accessors
public Set getSymptoms()
	{return mySymptoms.getMembers();}
	
public String getName()
	{return myName;}
	
public String getDescription()
	{return myDescription;}
	
//computational methods
public double getSimilarityToSymptoms(SymptomSet s)
	{return mySymptoms.getSimilarity(s);}

public double getSimilarityToCondition(Condition c)
	{return mySymptoms.similarity(c.getSymptoms());}
	
//superclass method overload
public String toString()
	{
		return myName+"\n"+myDescription+"\n"+"Symptoms:\n"+mySymptoms.toString();
	}
	

	



}